#include "Sandbox.hpp"
// [PHAT] temps
#include "Keyboard.hpp"
#include "PrototypeMidi.hpp"
#include "PrototypeTimer.hpp"
#include "PrototypeThread.hpp"

int main()
{
    Sandbox mySandbox;

    // creation des prototype
    boost::shared_ptr<Prototype> pMidiProto( new PrototypeMidi("Prototype Midi") );
    boost::shared_ptr<Prototype> pTimerProto( new PrototypeTimer("Prototype Timer") );
	boost::shared_ptr<Prototype> pThreadProto( new PrototypeThread("Prototype Thread") );
    mySandbox.Add(pMidiProto);
    mySandbox.Add(pTimerProto);
	mySandbox.Add(pThreadProto);

    mySandbox.Init();

    while (!key[KEY_ESC])
    {
        mySandbox.Run();
        mySandbox.Render();
        rest(0);
    }

    return 0;
}
END_OF_MAIN()
